package com.sgzn.sgpay.container;

import org.springframework.beans.BeansException;
import org.springframework.context.ApplicationContext;
import org.springframework.context.ApplicationContextAware;
import org.springframework.stereotype.Component;

/**
 * 获取Spring bean容器
 * @author huangsenguang
 * @version Id: ServicePrivinderCore.java, v 0.1 2018/7/29 9:15 huangsenguang Exp $$
 */
@Component
public class ServicePrivinderCore implements ApplicationContextAware {
    @Override
    public void setApplicationContext(ApplicationContext applicationContext) throws BeansException {
        ServicePrivinder.context = applicationContext;
    }
}

